with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
with SDL_stdinc_h;

package SDL_main_h is

  C_LINKAGE : aliased constant String := "C" & ASCII.NUL;  --  SDL_main.h:36

  -- The prototype for the application's main() function
   function SDL_main (argc : int; argv : System.Address) return int;  -- SDL_main.h:53:53
   pragma Import (C, SDL_main, "SDL_main");

  -- From the SDL library code -- needed for registering the app on Win32
  -- This should be called from your WinMain() function, if any
   procedure SDL_SetModuleHandle (hInst : System.Address);  -- SDL_main.h:65:61
   pragma Import (C, SDL_SetModuleHandle, "SDL_SetModuleHandle");

  -- This can also be called, but is no longer necessary
   function SDL_RegisterApp
     (name : Interfaces.C.Strings.chars_ptr;
      style : SDL_stdinc_h.Uint32;
      hInst : System.Address) return int;  -- SDL_main.h:67:82
   pragma Import (C, SDL_RegisterApp, "SDL_RegisterApp");

  -- This can also be called, but is no longer necessary (SDL_Quit calls it)
   procedure SDL_UnregisterApp;  -- SDL_main.h:69:52
   pragma Import (C, SDL_UnregisterApp, "SDL_UnregisterApp");

end SDL_main_h;
